package view;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.*;
import javax.swing.border.BevelBorder;

import control.RoomControl;
import view.*;
import model.Employee;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

;

public class F_Main extends JFrame {
	Employee employee;

	/**
	 * Launch the application.
	 */

	/**
	 * Create the frame.
	 */
	public F_Main(Employee employee) {
		this.employee = employee;

		// ------------------
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);

		// --------------------
		Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
		setLocation(0, 0);

		this.setSize(((int) screen.getWidth()) - 100,
				((int) screen.getHeight()) - 100);
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);

		JMenu mnFile = new JMenu("File");
		menuBar.add(mnFile);

		JMenu mnNewMenu = new JMenu("Transaction");
		menuBar.add(mnNewMenu);

		JMenu mnNewMenu_1 = new JMenu("Receipt");
		menuBar.add(mnNewMenu_1);

		// -------------------
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);

		F_Booking b = new F_Booking(this, employee);

		tabbedPane.addTab("Booking", null, b, "Does nothing");

		tabbedPane.setSelectedIndex(0);

		F_Checkin c = new F_Checkin(this, employee);
		tabbedPane.addTab("Check in", null, c, "This is Tab Two");

		JCheckBox checkBox = new JCheckBox("This is Tab Three");
		tabbedPane.addTab("Check out", null, checkBox, "Still does nothing");

		getContentPane().add(tabbedPane, BorderLayout.NORTH);

	}

}
